#ifndef CHINAOBS_H
#define CHINAOBS_H
#include "database.h"
#include "config/common.h"

#include "util/define.h"
class ChinaObs : public DataBase
{
public:
    union {
        unsigned char byteval[4];
        short tbytev[2];
        int fbytev;
    } threeB2long ;

    ChinaObs();
    ChinaObs(QString fileName);
    ChinaObs(QString fileName,DATAFORMAT dataFormat);
    unsigned int HextoInt(unsigned char datebyte);
public:
    virtual QDateTime getStartTime(QString fileName);
    virtual QDateTime getStartTime();
    virtual LONG getPointNumber();
    virtual int *getData(LONG  start ,LONG  end,DATAFORMAT dataformat =0 ,int pianyiPoint =0 );
    virtual int getFreq();
    virtual ~ChinaObs();
};

#endif // CHINAOBS_H
